package no.listeners;

import android.content.Context;
import android.view.ScaleGestureDetector;


public class ScaleListener extends ScaleGestureDetector.SimpleOnScaleGestureListener {
	private float mScaleFactor = 1.f;
    
	public boolean onScale(ScaleGestureDetector detector) {
        mScaleFactor *= detector.getScaleFactor();
        System.out.println("KOM INN FOR FAEN!!!");
        // Don't let the object get too small or too large.
        mScaleFactor = Math.max(0.1f, Math.min(mScaleFactor, 5.0f));
//        invalidate();
        return true;
    }
}
